import request from "./require";

export function getLoginBx() {
  return request({
    url: "/login",
    method: "GET"
  })
}
// 首页轮播
export function getHomeSwiBx() {
  return request({
    url: "/homeswiperBx",
    method: "GET"
  })
}

export function setHomeSwiBx(data) {
  return request({
    url: `/homeswiperBx/set/${data.id}`,
    method: "PUT",
    data
  })
}
export function AddHomeSwiBx(data) {
  return request({
    url: '/homeswiperBx/add',
    method: "POST",
    data
  })
}
export function DelHomeSwiBx(data) {
  return request({
    url: `/homeswiperBx/del/${data.id}`,
    method: "DELETE",
    data
  })
}
// 首页导航图标
export function getIconBx() {
  return request({
    url: "/iconbx",
    method: "GET"
  })
}

export function setIconBx(data) {
  return request({
    url: `/iconbx/set/${data.id}`,
    method: "PUT",
    data
  })
}

// 商品推荐
export function getZwyShopListBx() {
  return request({
    url: "/zwyShopList",
    method: "GET"
  })
}

export function getShopReBx() {
  return request({
    url: "/shopReBX",
    method: "GET"
  })
}

export function AddShopReBx(data) {
  return request({
    url: '/shopReBX/add',
    method: "POST",
    data
  })
}

export function DelShopReBx(data) {
  return request({
    url: `/shopReBX/del/${data.id}`,
    method: "DELETE",
    data
  })
}
// 公告修改
export function getGaoBx() {
  return request({
    url: "/gaobx",
    method: "GET"
  })
}
export function setGaoBx(data) {
  return request({
    url: `/gaobx/set/${data.id}`,
    method: "PUT",
    data
  })
}
// 退货地址管理
export function getAdressBx() {
  return request({
    url: "/adressbx",
    method: "GET"
  })
}
export function setAdressBx(data) {
  return request({
    url: `/adressbx/set/${data.id}`,
    method: "PUT",
    data
  })
}
// 店铺分类管理
export function getHomeSortBx() {
  return request({
    url: "/hmstbx",
    method: "GET"
  })
}
export function setHomeSortBx(data) {
  return request({
    url: `/hmstbx/set/${data.id}`,
    method: "PUT",
    data
  })
}

// 权限管理

// 门店管理
export function getShopListBx() {
  return request({
    url: "/shoplistbx",
    method: "GET"
  })
}

export function setShopListBx(data) {
  return request({
    url: `/shoplistbx/set/${data.id}`,
    method: "PUT",
    data
  })
}
export function AddShopListBx(data) {
  return request({
    url: '/shoplistbx/add',
    method: "POST",
    data
  })
}
export function DelShopListBx(data) {
  return request({
    url: `/shoplistbx/del/${data.id}`,
    method: "DELETE",
    data
  })
}

// 管理员管理
export function setLoginBx(data) {
  return request({
    url: `/login/set/${data.id}`,
    method: "PUT",
    data
  })
}
export function AddLoginBx(data) {
  return request({
    url: '/login/add',
    method: "POST",
    data
  })
}
export function DelLoginBx(data) {
  return request({
    url: `/login/del/${data.id}`,
    method: "DELETE",
    data
  })
}
// 提现管理
export function getWithBx() {
  return request({
    url: "/withbx",
    method: "GET"
  })
}
export function setWithBx(data) {
  return request({
    url: `/withbx/set/${data.id}`,
    method: "PUT",
    data
  })
}

// 角色管理
export function getRoleBx() {
  return request({
    url: "/rolebx",
    method: "GET"
  })
}

export function setRoleBx(data) {
  return request({
    url: `/rolebx/set/${data.id}`,
    method: "PUT",
    data
  })
}
export function AddRoleBx(data) {
  return request({
    url: '/rolebx/add',
    method: "POST",
    data
  })
}
export function DelRoleBx(data) {
  return request({
    url: `/rolebx/del/${data.id}`,
    method: "DELETE",
    data
  })
}

// 杜嘉蒙
// 获取积分明细数据
export function getIntDjm() {
  return request({
    url: "/getInt",
    method: "GET"
  })
}
// 获取余额明细数据
export function getPriceDjm() {
  return request({
    url: "/getPrice",
    method: "GET"
  })
}
// 获取充值金额数据
export function getOddDjm() {
  return request({
    url: "/getOdd",
    method: "GET"
  })
}
// 获取优惠明细数据
export function getYhMingxiDjm() {
  return request({
    url: "/getYhMingxi",
    method: "GET"
  })
}
// 添加优惠明细数据
export function addYhMingxiDjm(data) {
  return request({
    url: "/addYhMingxi",
    method: "POST",
    data
  })
}
// 获取优惠券分类数据
export function getSelectListDjm() {
  return request({
    url: "/getSelectList",
    method: "GET"
  })
}
// 添加优惠券分类数据
export function addSelectListDjm(data) {
  return request({
    url: "/addSelectList",
    method: "POST",
    data
  })
}
// 更新优惠券分类数据
export function putSelectListDjm(data) {
  return request({
    url: `/putSelectList/${data.id}`,
    method: "PUT",
    data
  })
}
// 删除优惠券分类数据
export function deleteSelectListDjm(id) {
  return request({
    url: `/deleteSelectList/${id}`,
    method: "DELETE"
  })
}
// 获取积分商品数据
export function getJiFenShopDjm() {
  return request({
    url:'/getJiFenShop',
    method: "GET"
  })
}
// 获取积分状态管理数据
export function getJiFenStateDjm() {
  return request({
    url:'/getJiFenState',
    method: "GET"
  })
}
// 修改积分状态管理数据
export function putJiFenStateDjm(data) {
  return request({
    url:`/putJiFenState/${data.id}`,
    method: "PUT",
    data
  })
}
// 添加积分商品数据
export function addJiFenShopDjm(data) {
  return request({
    url:'/addJiFenShop',
    method: "POST",
    data
  })
}
//获取信息意见数据
export function getYiJianDjm() {
  return request({
    url:'/getYiJian',
    method: "GET"
  })
}
//删除信息意见数据
export function deleteYiJianDjm(id) {
  return request({
    url:`/deleteYiJian/${id}`,
    method: "DELETE"
  })
}
//获取合作申请数据
export function getHeZuoDjm() {
  return request({
    url:'/getHeZuo',
    method: "GET"
  })
}
//删除合作申请数据
export function deleteHeZuoDjm(id) {
  return request({
    url:`/deleteHeZuo/${id}`,
    method: "DELETE"
  })
}
//获取用药回答数据
export function getHuiDaDjm() {
  return request({
    url:'/getHuiDa',
    method: "GET"
  })
}
//修改用药回答数据
export function putHuiDaDjm(data) {
  return request({
    url:`/putHuiDa/${data.id}`,
    method: "PUT",
    data
  })
}
//添加用药回答数据
export function addHuiDaDjm(data) {
  return request({
    url:`/addHuiDa/${data.id}`,
    method: "POST",
    data
  })
}

// 赵文宇
export function postzwyShopListAdd(data) {
  return request({
    url: "/zwyShopListAdd",
    method: "POST",
    data
  })
}
export function deletezwyShopListDel(id) {
  return request({
    url: "/zwyShopListDel/" + id,
    method: "DELETE"
  })
}
export function putzwyShopListUpdate(data) {
  console.log(data);
  return request({
    url: "/zwyShopListUpdate/" + data.id,
    method: "PUT",
    data
  })
}
//商品组
export function getzwyGroupList() {
  return request({
    url: "/zwyGroupList",
    method: "GET"
  })
}
export function postzwyGroupListAdd(data) {
  return request({
    url: "/zwyGroupListAdd",
    method: "POST",
    data
  })
}
export function deletezwyGroupListDel(id) {
  return request({
    url: "/zwyGroupListDel/" + id,
    method: "DELETE"
  })
}
export function putzwyGroupListUpdate(data) {
  console.log(data);
  return request({
    url: "/zwyGroupListUpdate/" + data.id,
    method: "PUT",
    data
  })
}
//品牌
export function getzwyLogoList() {
  return request({
    url: "/zwyLogoList",
    method: "GET"
  })
}
export function postzwyLogoListtAdd(data) {
  return request({
    url: "/zwyLogoListAdd",
    method: "POST",
    data
  })
}
export function deletezwyLogoListtDel(id) {
  return request({
    url: "/zwyLogoListDel/" + id,
    method: "DELETE"
  })
}
export function putzwyLogoListUpdate(data) {
  console.log(data);
  return request({
    url: "/zwyLogoListUpdate/" + data.id,
    method: "PUT",
    data
  })
}
//状态
export function getzwyStatusList() {
  return request({
    url: "/zwyStatusList",
    method: "GET"
  })
}
export function putzwyStatusListUpdate(data) {
  console.log(data);
  return request({
    url: "/zwyStatusListUpdate/" + data.id,
    method: "PUT",
    data
  })
}
//维权
export function getzwyProtectionList() {
  return request({
    url: "/zwyProtectionList",
    method: "GET"
  })
}
export function putzwyProtectionListUpdate(data) {
  return request({
    url: "/zwyProtectionListUpdate/" + data.id,
    method: "PUT",
    data
  })
}

// 苗世军
// 获取会员列表
export function getmsjviplist() {
  return request({
    url: "/msjgetviplist",
    method: "GET"
  })
}

// 获取会员等级 
export function getmsjvipdengji() {
  return request({
    url: "/msjgetvipdengji",
    method: "GET"
  })
}
// 修改会员等级
export function putmsjvipdengji(data) {
  return request({
    url: `/msjgetvipdengji/${data.id}`,
    method: "put",
    data
  })
}
// 添加会员等级 
export function addmsjvipdengji(data) {
  return request({
    url: `/msjaddvipdengji`,
    method: "post",
    data
  })
}

// 获取会员分组 
export function getmsjvipfenzu() {
  return request({
    url: "/msjvipfenzu",
    method: "GET"
  })
}
// 添加会员分组 
export function addmsjvipfenzu(data) {
  return request({
    url: "/addmsjvipfenzu",
    method: "post",
    data
  })
}
// 删除会员分组
export function delmsjvipfenzu(id) {
  return request({
    url: `/delmsjvipfenzu/${id}`,
    method: "delete"
  })
}
// 获取添加会员页所有用户 
export function getmsjusers() {
  return request({
    url: "/msjusers",
    method: "GET"
  })
}
// 分组添加会员数 
export function putmsjvipfenzu(data) {
  return request({
    url: `/msjvipfenzu/${data.id}`,
    method: "put",
    data
  })
}

export function addmsjviplist(data){
  return request({
    url: `/addmsjgetviplist`,
    method: "post",
    data
  })
}

// 获取评价管理
export function getmsjpingjia() {
  return request({
    url: "/msjpingjia",
    method: "GET"
  })
}
// 删除评价管理
export function delmsjpingjia(id) {
  return request({
    url: `/msjpingjia/${id}`,
    method: "delete"
  })
}
// 修改评价管理 审核 回复 

export function putmsjpingjia(data) {
  return request({
    url: `/msjsetpingjia/${data.id}`,
    method: "put",
    data
  })
}
// 添加商品评价 

export function addmsjpingjia(data){
  return request({
    url: `/addmsjpingjia`,
    method: "post",
    data
  })
}

// 获取会场管理
export function getmsjhuichang() {
  return request({
    url: "/msjhuichang",
    method: "GET"
  })
}
// 删除会场管理
export function delmsjhuichang(id) {
  return request({
    url: `/msjhuichang/${id}`,
    method: "delete"
  })
}
// 添加会场管理 
export function addmsjhuichang(data){
  return request({
    url: `/addmsjhuichang`,
    method: "post",
    data
  })
}
// 修改会场管理 
export function msjsethuichang(data) {
  return request({
    url: `/msjsethuichang/${data.id}`,
    method: "put",
    data
  })
}

// 获取会场商品管理 
export function getmsjhuichangshops() {
  return request({
    url: "/msjhuichangshops",
    method: "GET"
  })
}
// 删除会场商品管理
export function delmsjhuichangshops(id) {
  return request({
    url: `/msjhuichangshops/${id}`,
    method: "delete"
  })
}
// 添加会场商品管理
export function addmsjhuichangshops(data){
  return request({
    url: `/addmsjhuichangshops`,
    method: "post",
    data
  })
}
// 修改会场商品管理 
export function msjsethuichangshops(data) {
  return request({
    url: `/msjsethuichangshops/${data.id}`,
    method: "put",
    data
  })
}
// 获取活动秒杀分类 
export function getmsjmsfenlei() {
  return request({
    url: "/msjmsfenlei",
    method: "GET"
  })
}
// 删除活动秒杀分类 
export function delmsjmsfenlei(id) {
  return request({
    url: `/msjmsfenlei/${id}`,
    method: "delete"
  })
}
// 添加活动秒杀分类 
export function addmsjmsfenleis(data){
  return request({
    url: `/addmsjmsfenleis`,
    method: "post",
    data
  })
}
// 修改活动秒杀分类 
export function setmsjmsfenleis(data) {
  return request({
    url: `/setmsjmsfenleis/${data.id}`,
    method: "put",
    data
  })
}

// 
// 获取活动拼团分类 
export function getmsjpinfenlei() {
  return request({
    url: "/msjpinfenlei",
    method: "GET"
  })
}
// 删除活动拼团分类
export function delmsjpinfenlei(id) {
  return request({
    url: `/msjpinfenlei/${id}`,
    method: "delete"
  })
}
// 添加活动拼团分类 
export function addmsjpinfenlei(data){
  return request({
    url: `/addmsjpinfenlei`,
    method: "post",
    data
  })
}
// 修改活动拼团分类
export function setmsjpinfenlei(data) {
  return request({
    url: `/setmsjpinfenlei/${data.id}`,
    method: "put",
    data
  })
}

// 获取活动拼团商品
export function getmsjpinshops() {
  return request({
    url: "/msjpinshops",
    method: "GET"
  })
}
// 删除活动拼团商品
export function delmsjpinshops(id) {
  return request({
    url: `/msjpinshops/${id}`,
    method: "delete"
  })
}
// 修改活动拼团商品
export function setmsjpinshops(data) {
  return request({
    url: `/setmsjpinshops/${data.id}`,
    method: "put",
    data
  })
}
// 添加活动拼团商品 
export function addmsjpinshops(data){
  return request({
    url: `/addmsjpinshops`,
    method: "post",
    data
  })
}

// 获取拼团状态管理 
export function getmsjpinspstate() {
  return request({
    url: "/msjpinspstate",
    method: "GET"
  })
}
// 修改拼团状态管理 
export function setmsjpinspstate(data) {
  return request({
    url: `/msjpinspstate/${data.id}`,
    method: "put",
    data
  })
}